﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using BlazorShop.Models;

namespace BlazorShop.Data
{
    public class BlazorShopContext : DbContext
    {
        public BlazorShopContext (DbContextOptions<BlazorShopContext> options)
            : base(options)
        {
        }

        public DbSet<BlazorShop.Models.User> User { get; set; } = default!;

        public DbSet<BlazorShop.Models.Product> Product { get; set; } = default!;

        public DbSet<BlazorShop.Models.Category> Category { get; set; } = default!;

        public DbSet<BlazorShop.Models.Order> Order { get; set; } = default!;

        public DbSet<BlazorShop.Models.LineItem> LineItem { get; set; } = default!;
    }
}
